//
//  CAUpgradeSubmitNoCartApi.m
//  LNH
//
//  Created by twentylx on 2018/2/22.
//  Copyright © 2018年 twentylx. All rights reserved.
//

#import "CAUpgradeSubmitNoCartApi.h"

@implementation CAUpgradeSubmitNoCartApi {
    NSString *_goodsId;
    NSString *_sku;
    NSString *_level;
    NSString *_destrictId;
    NSString *_inviteCode;
    NSString *_addressId;
    NSString *_remark;
}

- (instancetype)initGoodsId:(NSString *)goodsId Sku:(NSString *)sku Level:(NSString *)level DistrictId:(NSString *)destrictId InviteCode:(NSString *)inviteCode AddressId:(NSString *) addressId Remark:(NSString *) remark{
    self = [super init];
    if (self) {
        _goodsId = goodsId;
        _sku = sku;
        _level = level;
        _destrictId = destrictId;
        _inviteCode = inviteCode;
        _addressId = addressId;
        _remark = remark;
    }
    return self;
}

-(YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

-(id)requestArgument{
    return @{
             @"token":GVUD.token,
             @"goods_id":_goodsId,
             @"level":_level,
             @"district_id":_destrictId,
             @"invite_code":_inviteCode,
             @"address_id":_addressId,
             @"remark":_remark,
             };
}

-(NSString *)requestUrl{
    NSLog(@"%@", [NSString stringWithFormat:@"%@upgradeOrderDoneNoCart",BASE_SERVICE_DOMAIN]);
    return [NSString stringWithFormat:@"%@upgradeOrderDoneNoCart",BASE_SERVICE_DOMAIN];
}

@end

